package com.delivery.www.dao;

import com.delivery.www.po.Order;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface OrderDao {
    //下单
    public int addOrder(int userId, int storeId, int dishId, String status, Float money);

    //查看完成订单
    public List<Order> getCompleteOrder(int storeId, String status) ;

    //收益
    public Float earnings(int storeId, String status);

    //查看未完成订单
    public List<Order> getUnCompleteOrder(int storeId, String status);

    //修改订单状态
    public int modifyStatus(int orderId, String status, int storeId);

    //用户获取订单
    public List<Order> getOwnOrder(int userId);
}
